﻿using System;
using wojilu.ORM;

namespace wojilu.Apps.Qycms.Domain
{
    [Table("ybb_admin_powergroup")]
    [Serializable]
    public class PowerGroup : ObjectBase<PowerGroup>
    {
        public PowerGroup() { }

        public PowerGroup(String powername, String powerlist, Int32 delclass)
        {
            this.powername = powername;
            this.powerlist = powerlist;
            this.delclass = delclass;
            this.insert();
        }

        [Column(Length = 150)]
        public String powername { get; set; }

        [LongText]
        public String powerlist { get; set; }

        [Default(0), TinyInt]
        public Int32 delclass { get; set; }
    }
}
